/**
 * Created by Administrator on 2016/10/18 0018.
 */
/*
var Chapter = require("./models/chapter");

Chapter.getBookChapters("武道至尊",function(err,result){
    if(err){
        console.log(err);
    }else{
        console.log(result);
    }

})*/
/*var async = require("async");
var arr = [];
for(var i=0;i<10000;i++){
    arr.push(i);
}
async.eachLimit(arr,10,function(item,cb){
    console.log(item);
    setImmediate(cb);
},function(err){});*/
var flag = 1;
function demo(){
    setTimeout(function(){
        console.log("end");
        flag = 2;
    },2000);
}
setTimeout()

